<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
			<div class = "Owner">
				<a href = "${userUrls.home}" class = "Img"><img src = "${userInfo.headImage}" alt = "${userInfo.name}" title = "${userInfo.name}" class = "LagrePortrait" /></a>
				<span class = "U">
					<a href = "${userUrls.home}" class = "Name" title = '${userInfo.sex}'>${userInfo.name}</a>
					<span class = "opts">
						<img src = "${userInfo.sexImage}" align = "absmiddle" title = "${userInfo.sex}"></img>
						<script>
							var nologin = "<a href = 'javascript:_follow_nologin()' title = '成为TA的粉丝'>关注此人</a>";
							var follow0 = "<a href = 'javascript:_follow_user(${userInfo.id}, true)' title = '成为TA的粉丝'>关注此人</a>";
							var follow1 = "已关注 | <a href = 'javascript:_follow_user(${userInfo.id}, false)' title = '取消关注后，此人的更新信息将不会出现在你的首页'>取消</a>";
							function _follow_nologin() {
								if (confirm("必须登录后才能关注，是否现在登录")) {
									location.href = "${initParam.webRootUrl}account/login.jsp?goto_page=" + location.href;
								}
							}
							function _follow_user(uid, follow) {
								var action = follow ? "/action/social/follow" : "/action/social/unfollow";
								ajax_post(action, "followId=" + uid + "&fansId=${visitorStatus.id}", function(result) {
									var act = $('#_follow_${userInfo.id}_action_');
									var fansCount = $('#fansCount span');
									if (result == '0')
										_follow_nologin();
									else if (result == '1') {
										act.html(follow0);
										var count = parseInt(fansCount.html()) - 1;
										fansCount.html(count);
									}
									else if (result == '2') {
										act.html(follow1);
										var count = parseInt(fansCount.html()) + 1;
										fansCount.html(count);
									}
								});
							}
						</script>
						<span id = "_follow_${userInfo.id}_action_">
							<c:choose>
								<c:when test="${!visitorStatus.login}">
									<a href = 'javascript:_follow_nologin()' title = '成为TA的粉丝'>关注此人</a>
								</c:when>
								<c:when test="${followed}">
									已关注 | <a href = 'javascript:_follow_user(${userInfo.id}, false)' title = '取消关注后，此人的更新信息将不会出现在你的首页'>取消</a>
								</c:when>
								<c:otherwise>
									<a href = 'javascript:_follow_user(${userInfo.id}, true)' title = '成为TA的粉丝'>关注此人</a>
								</c:otherwise>
							</c:choose>
						</span>
					</span>
				</span>
				<div class = "clear"></div>
				<div class = "stat">
					<a href = "${userUrls.fellow}" id = "followCount">关注(<span>${socialInfo.fellowsCount}</span>)</a>
					<a href = "${userUrls.fans}" id = "fansCount">粉丝(<span>${socialInfo.fansCount}</span>)</a>
				</div>
			</div>
			<div class = "Resume" id = "MyResume">
				${userInfo.label}
			</div>
			<div class = "Opts clearfix">
				<a href = "javascript:sendmsg(${userInfo.id}, '${userInfo.name}')" class = "a1 sendmsg">
					<i>.</i>
					<span>发送留言</span>
				</a>
				<div class = "nothing">
					<span></span>
				</div>
				<jsp:include page = "/commonPart/sendMsg.jsp"></jsp:include>
			</div>